<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link type="text/css" rel="stylesheet" href="/stylesheets/bootstrap.min.css" />
    <title>活动列表</title>

    <!--引入Jq插件-->
    <script type="text/javascript" src="/javascripts/jquery-1.8.3.min.js"></script>

    <!--引入分页插件-->
    <script type="text/javascript" src="/javascripts/jqPaginator.js"></script>

    <!--引入base.js用于改变状态-->
    <script type="text/javascript" src="/javascripts/base.js"></script>

</head>

<body>
<div class="panel panel-primary" style="margin: 10px 10px;">
    <div class="panel-heading">
        活动列表
    </div>


    <div class="clearfix" style="margin-bottom: 10px;"></div>
    <div class="row">
        <div class="panel-body">
            <form role="form" class="form-inline" method="GET" action="/activitys/activitylist">
            <div class="col-md-offset-1 col-md-2 margin-bottom-15">
                    <label for="name">输入关键词</label>
                    <input type="text" class="form-control" value="" id="name" name="keyword" placeholder="请输入活动标题">
                </div>
        <div class="row templatemo-form-buttons">
            <div class="col-md-2">
                    <button type="submit" class="btn btn-primary" style="margin-top: 24px;margin-left: 40px;">查询</button>
            </div>
        </div>
            </form>
    </div>
    </div>
    <div class="clearfix" style="margin-bottom: 10px;"></div>
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="table-responsive">
                <table class="table table-striped table-hover table-bordered">
                    <thead>
                        <tr>
                            <th>活动id</th>
                            <th>比赛id</th>
                            <th>比赛标题</th>
                            <th>比赛人数</th>
                            <th>比赛负责人</th>
                            <th>负责人电话</th>
                            <th>发布时间</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>比赛要求</th>
                            <th>审核状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>

                        <% for(var i=0;i<body.length;i++){%>
                        
                        <tr>
                            <td><%=body[i].id%></td>
                            <td><%=body[i].announce_id%></td>
                            <td><%=body[i].activity_title%></td>
                            <td><%=body[i].activity_person%></td>
                            <td><%=body[i].activity_leader%></td>
                            <td><%=body[i].activity_cleader%></td>
                            <td><%=body[i].activity_time%></td>
                            <td><%=body[i].activity_stime%></td>
                            <td><%=body[i].activity_etime%></td>
                            <td><%=body[i].activity_content%></td>
                            <td><% if(body[i].activity_status == 0){%>
                                <img src="/images/wait.png" />                
                            <%} else if(body[i].activity_status == 1) {%>
                                <img src="/images/yes.gif" />                
                            <%} else {%>
                                <img src="/images/no.gif" />                
                           <%}%></td>
                            
                            <td>
                                <a href="/activitys/examine?id=<%=body[i].id%>" class="btn btn-info">修改</a>
                                <a href="/delete?model=activity&id=<%=body[i].id%>&uaModel=user_activity" class="btn btn-danger delete">删除</a>
                            </td>
                        </tr>
                        
                        <%}%>

           
                    </tbody>
        </table>

        <div id="page" class="pagination pull-right"></div>


        </div>
        </div>
    </div>
</div>


    <script>

      

    </script>


</body>

</html>